package control.action;

import java.util.List;

import model.Varticle;
import business.factory.daos;


public class AtricleContentAction extends BaseAction {
	private int artsid;
	
	

	public int getArtsid() {
		return artsid;
	}



	public void setArtsid(int artsid) {
		this.artsid = artsid;
	}



	/**
	 * 文章内容详情页
	 * @return
	 */
	public String execute() {
		List<Varticle> artlist  = daos.articledao.getarticles();
		request.setAttribute("artlist", artlist);
		
		List<Varticle> artlist2  = daos.articledao.getarticles();
		request.setAttribute("artlist2", artlist2);
		
		Varticle article = daos.articledao.getarticleby(artsid);
		request.setAttribute("article", article);
		
		
		return SUCCESS;
	}
}